export default [
  {
    path: '/',
    component: () => import('@/layout'),
    redirect: '/login',
    children: [
      {
        path: '/home',
        component: () => import('@/views/HomeView.vue'),
        meta: {
          title: '首页',
          isShow: true,
        },
      },
      {
        path: '/home/limitbuy',
        component: () => import('@/views/LimitBuy.vue'),
        props: true,
        meta: {
          title: '限时秒杀',
          isShow: false,
        },
      },
      {
        path: '/home/limitbuy/shopdetail',
        props: true,
        component: () => import('@/views/ShopDetail.vue'),
        meta: {
          title: '秒杀详情',
          isShow: false,
        },
      },
      {
        path: '/cart',
        component: () => import('@/views/CartView.vue'),
        meta:{
          title:'购物车',
          isShow:true
        }
      }
    ],
  },
  {
    path:'/login',
    component:()=>import('@/views/LoginView'),
    meta:{
      auth:true
    }
  },
  {
    path:'*',
    component:()=>import('@/views/notFoundPage')
  }
];
